<?php
/**
 * 用以顯示錯誤訊息
 */
class ErrorController extends LZ_Controller {

	public function Action_Index(){
		echo "<h2>目前登入身分：$user</h2><p>您沒有權限讀取頁面</p>";
	}

	/**
	 * 顯示無 vip 權限錯誤訊息
	 */
    public function Action_Vip(){
		$user = isset($_SESSION['user']) ? $_SESSION['user'] : 'anonymous';
		AppProject::displayGohome();
		echo "<h1>權限不足</h1>";
		echo "<p>您的權限不足存取 VIP 專屬頁面</p><p>目前登入身分：$user</p>";

	}

	/**
	 * 顯示無 member 權限錯誤訊息
	 */
    public function Action_Member(){
		$user = isset($_SESSION['user']) ? $_SESSION['user'] : 'anonymous';
		AppProject::displayGohome();
		echo "<h1>您的權限不足</h1>";
		echo "<p>您的權限不足存取 Member 專屬頁面</p><p>目前登入身分：$user</p>";
	}
}